<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>一朵 - 积分排行</title>
  <!-- swiper-2.7css -->
    <link rel="stylesheet" href="__STATIC__/index/js/swiper/idangerous.swiper.css">
  <!-- swiper-2.7js -->
    <script src="__STATIC__/index/js/swiper/idangerous.swiper.min.js"></script>
  <!-- jquery-3.2.1引用 -->
    <script src="__STATIC__/index/js/global/jquery-3.2.1.min.js"></script>
  <!-- 阿里巴巴矢量图库 -->
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_561814_yo33l6f1qxhl4n29.css">
  <!-- 公共头部 脚部 -->
    <link rel="stylesheet" href="__STATIC__/index/css/global/global.css">
  <!-- 超过1200屏幕 -->
    <link rel="stylesheet" media="screen and (min-width: 1200px)" href="__STATIC__/index/css/ranking/ranking1200.css" />
  <!-- 1080-1200 -->
    <link rel="stylesheet" media="screen  and (min-width: 1080px) and (max-width: 1199px) " href="__STATIC__/index/css/ranking/ranking1080.css"
    />
  <!-- 960-1080 -->
    <link rel="stylesheet" media="screen  and (min-width: 960px) and (max-width: 1079px) " href="__STATIC__/index/css/ranking/ranking960.css"
    />
  <!-- 768-959 -->
    <link rel="stylesheet" media="screen  and (min-width: 768px) and (max-width: 959px) " href="__STATIC__/index/css/ranking/ranking768.css"
    />
  <!-- 568-767 -->
    <link rel="stylesheet" media="screen  and (min-width: 568px) and (max-width: 767px) " href="__STATIC__/index/css/ranking/ranking568.css"
    />
  <!-- 375-567 -->
    <link rel="stylesheet" media="screen  and (min-width: 375px) and (max-width: 567px) " href="__STATIC__/index/css/ranking/ranking375.css"
    />
  <!-- 小于375-->
    <link rel="stylesheet" media="screen  and (max-width: 374px) " href="__STATIC__/index/css/ranking/ranking320.css" />
</head>

<body>
    <div class="M">
        <div class="m-header">
            <div>
                <span onclick="go_back();">
                    <span class="iconfont icon-xiangzuo" ></span>
                    返回
                </span>
                <span>个人中心</span>
                <span>
                    {if condition="!empty($realname)"}
                        <a href="{:url('User/index')}" class="my" >
                            {$realname}
                        </a>
                    {else /}
                        <a href="{:url('Login/loginin')}">登录</a>
                        <a href="{:url('Login/register')}">注册</a>
                    {/if}
                    <a href="{:url('MyCart/my_cart')}" class="car">
                        <span class="iconfont icon-gouwuche"></span>
                        <span>{$cart_num}</span>
                    </a>
                </span>
            </div>
        </div>
        <div class="option">
            <div>
                <a href="{:url('User/my_point_rank')}?type=4" {if condition="$type eq 4"} class="option-zhong" {/if}>年榜</a>
                <a href="{:url('User/my_point_rank')}?type=3" {if condition="$type eq 3"} class="option-zhong" {/if}>月榜</a>
                <a href="{:url('User/my_point_rank')}?type=2" {if condition="$type eq 2"} class="option-zhong" {/if}>周榜</a>
                <a href="{:url('User/max_consume_rank')}?type=1" {if condition="$type eq 1"} class="option-zhong" {/if}>单笔消费</a>
            </div>
        </div>
        <div class="m-former">
            <div>
                <img src="__STATIC__/index/img/ranking/m.png" alt="">
            </div>
            <div>
                <span>
                    <p>
                        <span>NO.2</span>
                    </p>
                    <p>
                        <img src="{if condition='!empty($list.0.logo)'}{$list.0.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                    </p>
                    <p>{$list.1.realname}</p>
                    <p>{if condition="!empty($list.1.timestampsum)"}{$list.1.timestampsum}{else /}0{/if}</p>
                </span>
                <span>
                    <p>
                        <span>NO.1</span>
                    </p>
                    <p>
                        <img src="{if condition='!empty($list.1.logo)'}{$list.1.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                    </p>
                    <p>{$list.0.realname}</p>
                    <p>{if condition="!empty($list.0.timestampsum)"}{$list.0.timestampsum}{else /}0{/if}</p>
                </span>
                <span>
                    <p>
                        <span>NO.3</span>
                    </p>
                    <p>
                        <img src="{if condition='!empty($list.2.logo)'}{$list.2.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                    </p>
                    <p>{if condition="!empty($list.2.realname)"}{$list.2.realname}{else /}暂无{/if}</p>
                    <p>{if condition="!empty($list.2.timestampsum)"}{$list.2.timestampsum}{else /}0{/if}</p>
                </span>
            </div>
        </div>
        <div class="m-list">
            {foreach name="m_list" item="v"}
                <div>
                    <span>{$v.rownum}</span>
                    <span>
                        <img src="{if condition='!empty($v.logo)'}{$v.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                    </span>
                    <span>{$v.realname}</span>
                    <span>{if condition="!empty($v.timestampsum)"}{$v.timestampsum}{else /}0{/if}</span>
                </div>
            {/foreach}
        </div>
        <div class="m-fixation">
            <a href="{:url('User/my_point_log')}">
                <span>{$paihang.0.rownum}</span>
                <span>
                    <img src="{if condition='!empty($paihang.0.logo)'}{$paihang.0.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                </span>
                <span>{$user.realname}</span>
                <span>{if condition="!empty($user.pay_points)"}{$user.pay_points}{else /}0{/if}</span>
            </a>
        </div>
    </div>
    <!------------------------ PC ------------------------>

    <div class="PC">
        <!-- 公共头部 -->
        {include file="public/p_header" /}
        <!-- 公共头部结束 -->
        <div class="pc-content">
            {include file="public/p_user" /}

            <div class="PC_right">
                {include file="public/p_user_info" /}
                <div class="pc-tihuan">
                    <div class="pc-tihuan-headline">
                        <div>
                            <p>
                                {$store.title}>排行榜
                            </p>
                        </div>
                    </div>
                    <div class="pc-select">
                        <div>
                            <span>
                                <img src="__STATIC__/index/img/ranking/pc.png" alt="">
                            </span>
                            <span>
                                <p>{$store.title}</p>
                                <p>
                                    <span>我的排名：{$paihang.0.rownum}</span>
                                    <span>{if condition="$type neq 1"}我的积分{else /}我的余额{/if}：{if condition="$type neq 1"} {if condition="!empty($user.pay_points)"}{$user.pay_points}{else /}0{/if} {else /} {$user.user_money} {/if}</span>
                                    {if condition="$type neq 1"}
                                    <a href="{:url('User/my_point_log')}">查看积分明细</a>
                                    {else /}
                                    <a href="{:url('User/user_credit_log')}">查看账单</a>
                                    {/if}

                                </p>
                            </span>
                        </div>
                        <div>
                            <span>
                                <a href="{:url('User/my_point_rank')}?type=4" {if condition="$type eq 4"} class="pc-liang" {/if}>年榜</a>
                            </span>
                            <span>
                                <a href="{:url('User/my_point_rank')}?type=3" {if condition="$type eq 3"} class="pc-liang" {/if}>月榜</a>
                            </span>
                            <span>
                                <a href="{:url('User/my_point_rank')}?type=2" {if condition="$type eq 2"} class="pc-liang" {/if}>周榜</a>
                            </span>
                            <span>
                                <a href="{:url('User/max_consume_rank')}?type=1" {if condition="$type eq 1"} class="pc-liang" {/if}>单笔消费</a>
                            </span>
                        </div>
                    </div>
                    <div class="pc-for">
                        <!-- 循环开始 -->
                        {foreach name="list" item="v" key="k"}
                            <div>
                                {if condition="$k eq 0"}
                                <span class="pc-one">NO.1</span>
                                {elseif condition="$k eq 1" /}
                                <span class="pc-two">NO.2</span>
                                {elseif condition="$k eq 2" /}
                                <span class="pc-three">NO.3</span>
                                {else /}
                                 <span class="pc-four">{$v.rownum}</span>
                                {/if}
                              <!-- <span class="pc-two">NO.2</span> -->
                              <!-- <span class="pc-three">NO.3</span> -->
                              <!-- <span class="pc-four">1</span> -->
                                <span>
                                    <img src="{if condition='!empty($v.logo)'}{$v.logo}{else /}__STATIC__/index/img/shanchu/touxiang.jpg{/if}" alt="">
                                </span>
                                <span>{$v.realname}</span>
                                <span>{if condition="!empty($v.timestampsum)"}{$v.timestampsum}{else /}0{/if}</span>
                            </div>
                        {/foreach}
                        <!--<div>-->
                            <!--&lt;!&ndash; <span class="pc-one">NO.1</span> &ndash;&gt;-->
                            <!--<span class="pc-two">NO.2</span>-->
                            <!--&lt;!&ndash; <span class="pc-three">NO.3</span> &ndash;&gt;-->
                            <!--&lt;!&ndash; <span class="pc-four">1</span> &ndash;&gt;-->
                            <!--<span>-->
                                <!--<img src="__STATIC__/index/img/shanchu/touxiang.jpg" alt="">-->
                            <!--</span>-->
                            <!--<span>我是你大爷</span>-->
                            <!--<span>999999</span>-->
                        <!--</div>-->
                        <!--<div>-->
                            <!--&lt;!&ndash; <span class="pc-one">NO.1</span> &ndash;&gt;-->
                            <!--&lt;!&ndash; <span class="pc-two">NO.2</span> &ndash;&gt;-->
                            <!--<span class="pc-three">NO.3</span>-->
                            <!--&lt;!&ndash; <span class="pc-four">1</span> &ndash;&gt;-->
                            <!--<span>-->
                                <!--<img src="__STATIC__/index/img/shanchu/touxiang.jpg" alt="">-->
                            <!--</span>-->
                            <!--<span>我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷我是你大爷</span>-->
                            <!--<span>999999</span>-->
                        <!--</div>-->
                        <!--<div>-->
                            <!--&lt;!&ndash; <span class="pc-one">NO.1</span> &ndash;&gt;-->
                            <!--&lt;!&ndash; <span class="pc-two">NO.2</span> &ndash;&gt;-->
                            <!--&lt;!&ndash; <span class="pc-three">NO.3</span> &ndash;&gt;-->
                            <!--<span class="pc-four">4</span>-->
                            <!--<span>-->
                                <!--<img src="__STATIC__/index/img/shanchu/touxiang.jpg" alt="">-->
                            <!--</span>-->
                            <!--<span>我是你大爷</span>-->
                            <!--<span>999999</span>-->
                        <!--</div>-->
                        <!-- 循环结束 -->
                    </div>
                </div>
            </div>
        </div>
        <!-- 公共脚部  -->
        {include file="public/p_footer" /}
        <!-- 公共脚部 结束 -->

    </div>
    <script>
        /**
         * 返回上一页
         */
        function go_back(){
            window.history.back();  //返回上一页
        }
        /**
         * 完善会员信息
         */
        function edit_member_info(){
            window.location.href = "{:url('User/my_center')}";
        }
    </script>
</body>

</html>